package com.hzit.sb2.mapper;

import com.hzit.sb2.bean.Dept;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DeptMapper {
    @Select("SELECT * FROM dept WHERE deptno=#{deptno}")
    Dept findDeptById(Integer deptno);

    @Select("SELECT * FROM dept")
    List<Dept> findAll();
}
